package com.edu.service;

import com.edu.domain.Course;
import com.edu.domain.CourseVo;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

public interface CourseService {



    /**
     * 查询课程信息
     * */
    List<Course> findAllCourse(CourseVo courseVo);

    /*
    * 多条件课程列表查询
    * */
    public List<Course> findCourseByCondition(CourseVo courseVo);

    /**
     * 保存课程信息
     * */
    public void saveCourseOrTeacher(CourseVo courseVo) throws InvocationTargetException, IllegalAccessException;

    /**
     * 根据id查询课程信息
     * */
    public CourseVo findCourseById(int id);

    /**
     * 更新课程及讲师信息
     * */
    public void updateCourseOrTeacher(CourseVo courseVo) throws InvocationTargetException, IllegalAccessException;

    /**
     *课程状态变更
     */
    public void updateCourseStatus(int courseid,int status);
}
